//
//  FeedBackController.m
//  kuaiyi
//
//  Created by Stephen on 16/7/6.
//  Copyright © 2016年 Alphts. All rights reserved.                                                                                                                                                                                                                                                                                                  bgbgbbbggyut//

#import "FeedBackController.h"
#import "SEFeedBackView.h"

@interface FeedBackController ()

@end

@implementation FeedBackController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    [self setupUI];
    
}

-(void)setupUI{
    
    SEFeedBackView *feedBackView = [[SEFeedBackView alloc] initWithFrame:self.view.bounds];
    
    [self.view addSubview:feedBackView];

    __weak SEFeedBackView *weakSelf = feedBackView;
    
    feedBackView.feedBackBlock = ^{
        
        UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"输入超过字数限制" message:@"请不要超过200字" preferredStyle:UIAlertControllerStyleAlert];
        
        UIAlertAction *sure = [UIAlertAction actionWithTitle:@"知道啦" style:UIAlertActionStyleDefault handler:nil];
        
        [alert addAction:sure];
        
        [self presentViewController:alert animated:YES completion:^{
            
            weakSelf.textView.editable = YES;
            
        }];
    };
}

@end
